import request from '@/utils/request'

// 新增角色接口
// export function getEmployees(page, size) {
//   return request.get('/sys/user/', { page, size })
// }

export function getEmployees(page, size) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params: { page, size }
  })
}

export function addEmployees(data) {
  return request.post('/sys/user', data)
}

export function removeEmployees(id) {
  return request.delete(`/sys/user/${id}`)
}

export function importEmployee(data) {
  return request.post('/sys/user/batch', data)
}

export function saveUserDetailById(data) {
  return request.put(`/sys/user/${data.id}`)
}
// url: `/sys/user/${data.id}`,
// method: 'put', // 全量修改
// data
